
xsendBAtools ( )
{
echo "lcparam=$lcparam"
python3  ~/software/softgft/sendFile.py  lightcurveparam  $TriggerID  001 002 $telescope  $dateobs  $telescope   pipeline  01 test1 $lcparam

        echo $lctable
        python3  ~/software/softgft/sendFile.py  lightcurve  $TriggerID  001 002  $telescope  $dateobs  $telescope   pipeline  01 test1 $lctable



python3  ~/software/softgft/sendFile.py  cutimagepng  $TriggerID  001 002  $telescope  $dateobs  $telescope   pipeline  01 test1 $fchart_batools

python3  ~/software/softgft/sendFile.py  cutimagefit  $TriggerID  001 002  $telescope  $dateobs  $telescope   pipeline  01 test1 $fchart_batools_fit

python3  ~/software/softgft/sendFile.py  rawimagepng  $TriggerID  001 002  $telescope  $dateobs  $telescope   pipeline  01 test1 $rawimagepng

python3  ~/software/softgft/sendFile.py  rawimagefit  $TriggerID  001 002  $telescope  $dateobs  $telescope   pipeline  01 test1 $fitfile

}

xdefine ( )
{
TriggerID=
telescope=
dateobs=
sourcename=
prefix=
fchart_batools_fit=`echo $sourcename $TriggerID $prefix | awk '{print($3"_"$1"_cut.fit")}'`
fchart_batools=`echo $sourcename $TriggerID $prefix | awk '{print($3"_"$1"_cut.png")}'`
rawimagepng=`echo $prefix  | awk '{print($1".png")}'`
lctable=`echo $TriggerID"_"$fitfile".lc"`
lcparam=`echo $Dir_result_trigger $TriggerID | awk '{print($1"/"$2".lcp")}'`


}

for fitfile in `cat lista`
do
	echo $fitfile
	xdefine
	xsendBAtools
	sleep 30
done
